<script setup>
import { ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import Layout from './components/Layout/index.vue'
const router = useRouter()
const route = useRoute()
const selected = ref(route.path.replace('/', '') || 'dashboard')
watch(route, () => {
  selected.value = route.path.replace('/', '') || 'dashboard'
})
function onMenuClick(e) {
  router.push('/' + e.key)
}
</script>


<template>
  <Layout>
    <router-view />
  </Layout>
</template>


<style scoped>  


</style>
